package com.flex.core.validate.impl;

import com.flex.core.validate.AbstractValidator;

/**
 * 网络路径验证器
 * 
 * @author radio
 *
 */
public class UrlValidator extends AbstractValidator{

	/**
	 * 验证属性值是否是以http://开头的字符串
	 */
	protected String doValidate() {
		String msg = "";
		String filedValue = (String)getFiledValue();
		if(!filedValue.startsWith("http://")){
			msg = getValidation().message();
		}
		return msg;
	}

}
